package com.tech.zhidengxian.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tech.zhidengxian.mapper.typehandler.JsonTypeHandler;
import com.tech.zhidengxian.model.dataobject.CosDO;
import com.tech.zhidengxian.model.dataobject.UserDO;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author Ljh
 * @date 2023/5/11 1:28
 * @description 求购数据传输对象
 **/
@Data
public class PurchaseDTO {
    private Long id;
    private String content;
    @TableField(typeHandler = JsonTypeHandler.class)
    private List<CosDO> imageUrl;
    @TableField(typeHandler = JsonTypeHandler.class)
    private UserDO publisherInfo;

    private Long browseCount;
    private Long commentCount;
    private String school;
    private String city;
    private Date createTime;
    private Date updateTime;
    private Boolean isDeleted;
}
